﻿Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Imports Entities

' Here's a sample function supported on the host: GetBorrower()
' The clients sends in a GUID (BorrowerID) and gets back a Borrower Entity (MyBorrower)

' Tip: name your request: FunctionName + "I" (for Input) - in this case 'GetBorrowerI'
Public Class GetBorrowerI
  Inherits Albatross.Common.Messaging.DotNetRequest

  Private _BorrowerID As Guid
  Public Overridable Property BorrowerID() As Guid
    Get
      Return _BorrowerID
    End Get
    Set(ByVal value As Guid)
      _BorrowerID = value
    End Set
  End Property
End Class

' Tip: name your response: FunctionName + "O" (for Output) - in this case 'GetBorrowerO'
Public Class GetBorrowerO
  Inherits Albatross.Common.Messaging.Response

  Private _MyBorrower As Borrower
  Public Overridable Property MyBorrower() As Borrower
    Get
      Return _MyBorrower
    End Get
    Set(ByVal value As Borrower)
      _MyBorrower = value
    End Set
  End Property
End Class

Public Class GetBorrower2I
  Inherits Albatross.Common.Messaging.DotNetRequest

  Private _BorrowerID As Guid
  Public Overridable Property BorrowerID() As Guid
    Get
      Return _BorrowerID
    End Get
    Set(ByVal value As Guid)
      _BorrowerID = value
    End Set
  End Property
End Class

Public Class GetBorrower2O
  Inherits Albatross.Common.Messaging.Response

  Private _MyBorrower As Borrower
  Public Overridable Property MyBorrower() As Borrower
    Get
      Return _MyBorrower
    End Get
    Set(ByVal value As Borrower)
      _MyBorrower = value
    End Set
  End Property
End Class
